/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package src.domain.saving;

/**
 *
 * @author jasuke
 */
public class SavprodcompulId implements java.io.Serializable {
    
    private Integer savproductId;
    private Integer seq;

    public SavprodcompulId() {
    }
    
    public Integer getSavproductId() {
        return savproductId;
    }

    public void setSavproductId(Integer savproductId) {
        this.savproductId = savproductId;
    }

    public Integer getSeq() {
        return seq;
    }

    public void setSeq(Integer seq) {
        this.seq = seq;
    }
    
    @Override
   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof SavprodcompulId) ) return false;
		 SavprodcompulId castOther = ( SavprodcompulId ) other; 
         
		 return (this.getSavproductId()==castOther.getSavproductId())
 && (this.getSeq()==castOther.getSeq());
   }
 
   @Override
   public int hashCode() {
         Integer result = 17;
         
         result = 37 * result + this.getSavproductId();
         result = 37 * result + this.getSeq();
         return result;
   }   
    
    
    
}
